package com.dingup.paike.adapter.pk;

import com.dingup.paike.model.pk.PkLessonInfo;
import com.dingup.paike.model.pk.PkLessonUser;

import java.util.List;
import java.util.Map;

/**
 * Created by wancheng on 2018/10/12.
 */
public class PkLessonUpdateLogAdapter extends PkLessonInfo{

    private PkLessonUser updateTeacher;

    private Map<String, List<PkLessonUser>> updateStudent;

    private Map<String, List<PkLessonUser>> updateObserver;

    public PkLessonUpdateLogAdapter() {
    }

    public PkLessonUpdateLogAdapter(PkLessonInfo pkLessonInfo) {
        this.setId(pkLessonInfo.getId());
        this.setColor(pkLessonInfo.getColor());
        this.setBatchCode(pkLessonInfo.getBatchCode());
        this.setEeoCourseId(pkLessonInfo.getEeoCourseId());
        this.setEeoLessonId(pkLessonInfo.getEeoLessonId());
        this.setLessonName(pkLessonInfo.getLessonName());
        this.setSubjectName(pkLessonInfo.getSubjectName());
        this.setTeacherId(pkLessonInfo.getTeacherId());
        this.setBeginTime(pkLessonInfo.getBeginTime());
        this.setEndTime(pkLessonInfo.getEndTime());
        this.setIfTranscribe(pkLessonInfo.getIfTranscribe());
        this.setIfPlayback(pkLessonInfo.getIfPlayback());
        this.setIfLive(pkLessonInfo.getIfLive());
        this.setIfSyncEeo(pkLessonInfo.getIfSyncEeo());
        this.setClassId(pkLessonInfo.getClassId());
        this.setClassRoom(pkLessonInfo.getClassRoom());
        this.setIfClassFee(pkLessonInfo.getIfClassFee());
        this.setSeatNum(pkLessonInfo.getSeatNum());
        this.setCreateTime(pkLessonInfo.getCreateTime());
        this.setIfPreLesson(pkLessonInfo.getIfPreLesson());
        this.setIfDelete(pkLessonInfo.getIfDelete());
        this.setIfOnlineLesson(pkLessonInfo.getIfOnlineLesson());
    }

    public Map<String, List<PkLessonUser>> getUpdateStudent() {
        return updateStudent;
    }

    public void setUpdateStudent(Map<String, List<PkLessonUser>> updateStudent) {
        this.updateStudent = updateStudent;
    }

    public Map<String, List<PkLessonUser>> getUpdateObserver() {
        return updateObserver;
    }

    public void setUpdateObserver(Map<String, List<PkLessonUser>> updateObserver) {
        this.updateObserver = updateObserver;
    }

    public PkLessonUser getUpdateTeacher() {
        return updateTeacher;
    }

    public void setUpdateTeacher(PkLessonUser updateTeacher) {
        this.updateTeacher = updateTeacher;
    }

    public PkLessonInfo getPkLessonInfo(){
        PkLessonInfo pkLessonInfo = new PkLessonInfo();
        pkLessonInfo.setId(this.getId());
        pkLessonInfo.setColor(this.getColor());
        pkLessonInfo.setBatchCode(this.getBatchCode());
        pkLessonInfo.setEeoCourseId(this.getEeoCourseId());
        pkLessonInfo.setEeoLessonId(this.getEeoLessonId());
        pkLessonInfo.setLessonName(this.getLessonName());
        pkLessonInfo.setSubjectName(this.getSubjectName());
        pkLessonInfo.setTeacherId(this.getTeacherId());
        pkLessonInfo.setBeginTime(this.getBeginTime());
        pkLessonInfo.setEndTime(this.getEndTime());
        pkLessonInfo.setIfTranscribe(this.getIfTranscribe());
        pkLessonInfo.setIfPlayback(this.getIfPlayback());
        pkLessonInfo.setIfLive(this.getIfLive());
        pkLessonInfo.setIfSyncEeo(this.getIfSyncEeo());
        pkLessonInfo.setClassId(this.getClassId());
        pkLessonInfo.setClassRoom(this.getClassRoom());
        pkLessonInfo.setIfClassFee(this.getIfClassFee());
        pkLessonInfo.setSeatNum(this.getSeatNum());
        pkLessonInfo.setCreateTime(this.getCreateTime());
        pkLessonInfo.setIfPreLesson(this.getIfPreLesson());
        pkLessonInfo.setIfDelete(this.getIfDelete());
        pkLessonInfo.setIfOnlineLesson(this.getIfOnlineLesson());
        return pkLessonInfo;
    }
}
